<template>
  <div class="box">
    <h1>作用域插槽</h1>
    <ul>
      <li v-for="(item, index) in todos">
        <slot :$row="item" :$index="index"/>  
      </li>
    </ul>    
  </div>
</template>

<script setup lang="ts">
  defineProps(['todos'])

</script>

<style scoped>
.box {
  width: 100vw;
  height: 400px;
  background: skyblue;
}
</style>